import 'package:get/get.dart';

import '../stock.dart';
import '../stock_api.dart';
import '../test.dart';

class StockListController extends GetxController{

  RxList<Stock> mStockLsit = <Stock>[].obs;
  void getStockList()=> client.getStockList().then((value){
    logger.i(value.length);
    mStockLsit.addAll(value);
    update();
  });

  @override
  void onInit() {
    // TODO: implement onInit
    super.onInit();
    getStockList();
  }

}